<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>当月活动</title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>ui/css/right.css">
</head>
<script type="text/javascript">
  var pageUrl="${basePath}newsActivity/activityList.html?type=${type}&porCode=${porCode}";
</script>
<body>
		<div id="all">
			<div id="main">
				<div class="pageColumn">
					<div class="add_div">
						<%@ include file="/common/nav.jsp"%>
						<span style="float: right;padding-right: 10px"><button onclick="javascript:window.location.href='${basePath}newsActivity/editActivity/${type}.html?porCode=${porCode}'"
							class="add_btn">新 增</button></span>
					</div>
					<table>
						<thead>
							<tr>
								<th>标题</th>
								<th>创建时间</th>
								<th>首页展示</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="entity" items="${messageList }">
								<tr>
									<td width="40%">${entity.mesName }</td>
									<td width="15%"><fmt:formatDate value="${entity.mesWhen }"
											pattern="yyyy-MM-dd HH:mm:ss" /></td>
											 <td id="head_${entity.id }"><c:if test="${entity.mesIfreview==1 }">是</c:if><c:if test="${entity.mesIfreview!=1 }">否</c:if> </td>
									<td width="20%">
									<%-- <a
										href="${basePath}newsActivity/headActivity.html?id=${entity.id}&porCode=${porCode}&type=${type}" title="置顶"><img
											width="16" height="16"
											src="${basePath}image/frame/head.png" title="置顶"></a> --%>
									<a
										href="${basePath}newsActivity/editActivity/${type}.html?id=${entity.id}&porCode=${porCode}" title="编辑"> <img
											width="16" height="16"
											src="${basePath}image/frame/edit2.png"></a> <a title="删除"
										href="${basePath}newsActivity/deleteActivity/${type}.html?id=${entity.id}&porCode=${porCode}"
										onclick="if(confirm('确定删除吗？')){ return true;} else { return false}"><img
											width="16" height="16"
											src="${basePath}image/frame/del.png"></a></td>
								</tr>
							</c:forEach>
							<tr class="">
								<td class="checkBox" colspan="7"
									style="text-align:left; padding-left:12px;"><%@ include
										file="/common/page.jsp"%></td>
							</tr>

						</tbody>
					</table>
				</div>
			</div>
		</div>
</body>
</html>
